﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutoUploadTPlan
{
    
    public partial class SetTimeForm : Form
    {
        public SetTimeForm()
        {
            InitializeComponent();
            
        }
        public string getWeek()
        {
            ComboboxItem item = (ComboboxItem)this.cb_date.SelectedItem;
            string week = item.Text;
            return week ;
        }
        private void SetTimeForm_Load(object sender, EventArgs e)
        {
            for (int i = 1; i <= 20; i++)
            {
                ComboboxItem item = new ComboboxItem();
                item.Text = i.ToString();
                item.Value = i;
                this.cb_date.Items.Add(item);
            }
        }
        
        private void btn_setWeek_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            this.Hide();
        }
    }
    public class ComboboxItem
    {
        public string Text { get; set; }
        public object Value { get; set; }

        public override string ToString()
        {
            return Text;
        }
    }
}
